

function left(str){
    
    return str.replace(/^\s+/,"");
}

function right(str){
    
    return str.replace(/\s+$/,"");
}

let str = "   h h    ";


module.exports = {
    left,right
}

// console.log(left(str))
// console.log(right(str))